#include "vdata_hash.h"

typedef int (*vdata_set_fun_t)(int, int);
typedef int (*vdata_get_fun_t)(int, int);

typedef struct{
    const char *string;
    vdata_set_fun_t set;
    vdata_get_fun_t get;
}vdata_type_t;

const vdata_type_t vdata_func_arr[] =
{
    {"ProVer"       , 0          , 0          },
    {"AppVer"       , 0          , 0          },
    {"Pow"          , 0          , 0          },
    {"Mod"          , 0          , 0          },
    {"SetTem"       , 0          , 0          },
    {"SetTem2"      , 0          , 0          },
    {"SvSt"         , 0          , 0          },
    {"SrEg"         , 0          , 0          },
    {"ErrId"        , 0          , 0          },
    {"Oli"          , 0          , 0          },
    {"TemOut"       , 0          , 0          },
};

int main(void)
{
    unsigned int i = 0;
    unsigned int hash_value = -1;
    for(i = 0; i < (sizeof(vdata_func_arr)/sizeof(vdata_type_t)); i ++){
        hash_value = PJWHash((char *)vdata_func_arr[i].string, strlen(vdata_func_arr[i].string));
        printf("#define PJW_STRING_%02d 0x%08X //%s\r\n", i, hash_value, vdata_func_arr[i].string);
    }
    return 0;
}
